package com.ylbh.modules.commission.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.commission.dto.CommissionDTO;
import com.ylbh.common.pojo.commission.vo.CommissionVO;
import com.ylbh.modules.commission.entity.ShoppingCommission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * 用户返佣
 * @author czx
 * @date 2019-12-17 20:15:02
 */
@Mapper
@Repository
public interface ShoppingCommissionMapper extends BaseMapper<ShoppingCommission> {

    /**
     * 返佣提现列表
     * @param dto
     * @param page
     * @return
     */
    List<CommissionVO> selectCommissionList(@Param(value = "dto") CommissionDTO dto, Page<Integer> page);

    /**
     * 审核返佣提现
     * @param commissionId
     */
    void updateReviewOfWithdrawalOfCommissionById(String commissionId);

    /**
     * 获取返佣详情信息
     * @param commissionId
     * @return
     */
    CommissionVO selectCommissionDetailsInfoById(String commissionId);
}
